<?php if($sf_user->hasFlash('success')): ?>
<script>
    alert('<?php echo $sf_user->getFlash('success'); ?>');
</script>
<?php endif; ?>
<div class="lend_nav">
    <div class="wrap">
        <div class="panel panel-primary">
            <div class="panel-heading">
                <h3 class="panel-title ft-l"><?php echo $one_result->getTitle();?></h3>
                <span class="icon20_b <?php echo Loan::$list_type_class_name[$one_result->getListType()]; ?> ft-l" title="<?php echo $one_result->getListTypeToString()?>"></span>
            </div>
            <div class="panel-body">
                <div class="lend_tit">
                    <div class="ft-l">
                        
                        <div class="list">
                            <div class="chart_nav">
<!--                                //#状态：1=>'投标中',2=>'满标',3=>'审核中',4=>'还款中',5=>'已完成',6=>'流标',7=>'撤回'-->

                               <?php if($one_result->getStatusAndChange() == 1):?>
                                   <canvas class="" progress="<?php echo bcdiv($one_result->getRemainder(),$one_result->getMoney(),4)*100 ?>" height="90" width="90" name="Chart" style="width: 90px; height: 90px;"></canvas>
                                <?php endif;?>
                                 <?php if($one_result->getStatusAndChange() == 2):?>
                                   <img src="<?php echo image_path('lend/lendman.png')?>" class="lending" />
                               <?php endif;?>   
                                <?php if($one_result->getStatusAndChange() == 3):?>
                                   <img src="<?php echo image_path('lend/lendman.png')?>" class="lending" />
                                <?php endif;?>   
                                <?php if($one_result->getStatusAndChange() == 4):?>
                                   <img src="<?php echo image_path('lend/lending.png')?>" class="lending" />
                               <?php endif;?>
                               <?php if($one_result->getStatusAndChange() == 5):?>
                                   <img src="<?php echo image_path('lend/lendok.png')?>" class="lending" />
                               <?php endif;?>
                               <?php if($one_result->getStatusAndChange() == 6):?>
                                   <img src="<?php echo image_path('lend/lendlost.png')?>" class="lending" />
                               <?php endif;?>  
                               <?php if($one_result->getStatusAndChange() == 7):?>
                                   <img src="<?php echo image_path('lend/lendlost.png')?>" class="lending" />
                               <?php endif;?>  
                                   
                                <div>
                                    <label>已融资金额</label><span><?php echo sfConfig::get('app_symbol').number_format($one_result->getRemainder(),2);?></span><br />
                                    <label>剩余可投金额</label><span><?php echo sfConfig::get('app_symbol').number_format($one_result->getMoney()-$one_result->getRemainder(),2);?></span><br />
                                </div>
                            </div>
                            <div class="data_nav">
                                <dl>
                                    <dd>融资金额  <span><?php echo sfConfig::get('app_symbol').number_format($one_result->getMoney(),2);?></span></dd>

                                    <dd>年化利率 <span class="rate">
                                         <?php if($one_result->getListType() == 1):?>
					<?php echo $one_result->getMoneyRate()-2?>%+ 2%
                                            <?php else:?>
                                            <?php echo number_format($one_result->getMoneyRate(),2)."%"?>
                                        <?php endif;?>
                                        </span></dd>
                                    <dd>还款方式  <span>
					<?php if(!$one_result->getIsDay()): ?>
					按月付息，到期还本
					<?php else: ?>
					一次性还本付息
					<?php endif; ?>
				      </span></dd>
                                    <dd>融资期限 <span><?php echo $one_result->getTermNumToString() ?></span></dd>
                                    
                                    <dd>剩余时间 <span class="date">   
                                            <?php if($one_result->getStatus() == 1): ?>
                                    <?php $end_time = $one_result->getTime();?>
                                    <?php if(strtotime($end_time) < time()):?>
                                        已经结束
                                    <?php else:?>
                                        <?php echo $end_time;?>
                                    <?php endif;?>
                                        <?php else: ?>
                                        已经结束
                                        <?php endif; ?>
                                        </span></dd>
                                </dl>
                            </div>
                        </div>
                    </div>
                     <?php if ($one_result->getStatus() == 4): ?>
                            <div class="ft-r borrow_nav borrowednav">
                                <div class="borrowend">还款中，</div>
                                <div>
                                    融资金额 <?php echo sfConfig::get('app_symbol').number_format($one_result->getMoney(),2);?> 元，您还可以关注<br />
                                    <a href="<?php echo url_for('project/list')?>" tppabs="<?php echo url_for('project/list')?>" class="btn btn-primary">其他融资需求</a>
                                </div>
                            </div>
                    <?php endif;?>
		  <?php if ($one_result->getStatus() == 5): ?>
                            <div class="ft-r borrow_nav borrowednav">
                                <div class="borrowend">还款完成，</div>
                                <div>
                                    融资金额 <?php echo sfConfig::get('app_symbol').number_format($one_result->getMoney(),2);?> 元，您还可以关注<br />
                                    <a href="<?php echo url_for('project/list')?>" tppabs="<?php echo url_for('project/list')?>" class="btn btn-primary">其他融资需求</a>
                                </div>
                            </div>
                    <?php endif;?>
		  <?php if ($one_result->getStatus() == 2): ?>
                            <div class="ft-r borrow_nav borrowednav">
                                <div class="borrowend">审核中，</div>
                                <div>
                                    融资金额 <?php echo sfConfig::get('app_symbol').number_format($one_result->getMoney(),2);?> 元，您还可以关注<br />
                                    <a href="<?php echo url_for('project/list')?>" tppabs="<?php echo url_for('project/list')?>" class="btn btn-primary">其他融资需求</a>
                                </div>
                            </div>
                    <?php endif;?>
		  <?php if ($one_result->getStatus() == 6 || $one_result->getStatus() == 7): ?>
                            <div class="ft-r borrow_nav borrowednav">
                                <div class="borrowend">借款失败，</div>
                                <div>
                                    融资金额 <?php echo sfConfig::get('app_symbol').number_format($one_result->getMoney(),2);?> 元，您还可以关注<br />
                                    <a href="<?php echo url_for('project/list')?>" tppabs="<?php echo url_for('project/list')?>" class="btn btn-primary">其他融资需求</a>
                                </div>
                            </div>
                    <?php endif;?>
                            <?php if ($one_result->getStatus() == 1): ?>
                                <div class="ft-r borrow_nav">
                                    <?php if($sf_user->isAuthenticated()):?>
                                        <?php if ($sf_user->hasFlash('error')): ?>
                                        <div class="alert alert-danger"> <?php echo $sf_user->getFlash('error') ?></div>
                                        <?php endif;?>
                                        <form id="submitform" action="<?php echo url_for('project/index?id='.$one_result->getId())?>" method="POST">
                                            <div class="input-group">
                                            <input class="form-control" type="text" name="money">
                                            <span class="input-group-addon">元</span>
                                            </div>
                                            <input id="submit_button" class="btn btn-primary" type="submit" onclick="$(this).attr('disabled',true);" value="马上投标" />
                                                <img class="lendalt" alt="" src="<?php echo image_path('lend/qustion.png')?>">
                                        </form>
                                        <div class="borrowalt">
                                        <p>单笔投标金额：100.00元—10.00万元之间的整数</p>
                                        <p>
                                            可用余额：<?php echo sfConfig::get('app_symbol').number_format($user->getRemainingMoney(),2);?>
                                        <a href="<?php echo url_for('account/recharge'); ?>">[充值]</a>
                                        </p>
                                        </div>
                                    <?php else:?>
                                        <a class="btn btn-warning" tppabs="<?php echo url_for('user/login')?>" href="<?php echo url_for('user/login')?>">请 先 登 录 </a>
                                    <?php endif;?>
                                </div>
                            <?php endif;?>

                </div>
            </div>
        </div>
        <ul class="vmtab nav nav-tabs" id="lendtabnav">
            <li to="jkxx" class="active"><a href="javascript:void(0)">借款信息</a></li>
            <li to="fkjl"><a href="javascript:void(0)">风控信息</a></li>
            <li to="tbjl"><a href="javascript:void(0)">投标记录</a></li>
<!--                 <li to="xgwj"><a href="javascript:void(0)">相关文件</a></li>-->
        </ul>
        <div class="panel panel-lend" id="jkxx">
            <div class="panel-body">
                <div class="ft-l left-nav">
                    <div class="lendtable-tit vm-title">
                        <span></span>
                        <h3 class="ft-l">项目信息</h3>
                    </div>
                    <table class="table table-bordered lendtable">
                        <tbody>
                            <tr>
                                <th width="140">融资方</th>
                                <td><?php echo $loan_user->getPassUserName()?></td>
                            </tr>
                            <tr>
                                <th valign="top">额度信息</th>
                                <td><?php if($loan_description):?><?php echo $loan_description->getQuotaInfo(ESC_RAW)?><?php endif;?></td>
                            </tr>
                            <tr>
                                <th>借款名称</th>
                                <td><?php echo $one_result->getTitle();?></td>
                            </tr>
                            
                            <tr>
                                <th>年化利率</th>
                                <td><?php echo number_format($one_result->getMoneyRate(),2)."%"?></td>
                            </tr>
                            <tr>
                                <th>本期融资金额</th>
                                <td><?php echo sfConfig::get('app_symbol').$one_result->getMoney();?></td>
                            </tr>
                            <tr>
                                <th>投标截止时间</th>
                                <td><?php echo $one_result->getTime()?></td>
                            </tr>
                            <tr>
                                <th>借款用途</th>
                                <td><?php echo $one_result->getPurposeToString() ?></td>
                            </tr>
                            <tr>
                                <th valign="top">借款详情</th>
                                <style>
                                    .jkxq-c img {
                                        width: 410px;
                                        cursor: pointer;
                                        display: block;
                                        clear: both;
                                    }
                                </style>
                                <td class="jkxq-c"><?php if($loan_description):?><?php echo $loan_description->getLoanInfo(ESC_RAW)?><?php endif;?></td>
                            </tr>
                        </tbody> 
                    </table>
                </div>
                <div class="ft-r right-nav">
                    <div class="lendtable-tit vm-title">
                        <span></span>
                        <h3 class="ft-l">借款人信息</h3>
                    </div>
                    <table class="table table-bordered lendtable">
                        <tbody>
                            <tr>
                                <th width="140">性别</th>
                                <td><?php if($loan_user->getSex()):?>男<?php else:?>女<?php endif;?></td>
                            </tr>
                            <tr>
                                <th>年龄</th>
                                <td><?php echo $loan_user->getAge();?></td>
                            </tr>
                            <tr>
                                <th>学历</th>
                                <td><?php echo $edu_status;?></td>
                            </tr>
                            <tr>
                                <th>婚姻状况</th>
                                <td><?php echo $marray_status; ?></td>
                            </tr>
                            
                          
                        </tbody>
                    </table>
                </div>
                <?php if($one_result->getListType()=="2" && $house_infos): ?>
                <div class="ft-l left-nav">
                    <div class="lendtable-tit vm-title">
                        <span></span>
                        <h3 class="ft-l">房产信息</h3>
                    </div>
                    <table class="table table-bordered lendtable">
                        <tbody>
                            <tr>
                                <th width="140">小区名称</th>
                                <td><?php echo $house_infos->getEstateName();?></td>
                            </tr>
                            <tr>
                                <th valign="top">建筑面积</th>
                                <td><?php echo $house_infos->getBuildSize();?></td>
                            </tr>
                            <tr>
                                <th>使用年限</th>
                                <td><?php echo $house_infos->getUseYear();?></td>
                            </tr>
                            
                            <tr>
                                <th>评估价格</th>
                                <td><?php echo number_format($house_infos->getEvaluatePrice(),2)?></td>
                            </tr>
                            <tr>
                                <th>参考价格</th>
                                <td><?php echo number_format($house_infos->getReferencePrice(),2)?></td>
                            </tr>
                           
                        </tbody> 
                    </table>
                </div>
                <?php endif; ?>
            </div>
        </div>
        
        <?php include_partial("info", array('one_result'=>$one_result))?>

        <div class="panel panel-lend" id="tbjl" style="display: none">
            <div class="panel-body">
                <table class="table table-hover lender">
                    <thead>
                        <tr>
                            <th width="300">投资人</th>
                            <th width="300">有效金额</th>
                            <th width="">投标时间</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php if(!empty ($loan_record_list)):?>
                            <?php foreach($loan_record_list as $one):?>
                            <tr>
                                <td><?php echo Doctrine::getTable("User")->findOneById($one['user_id'])->getPassUserName();?></td>
                                <td><?php echo sfConfig::get('app_symbol').number_format($one['loan_money'],2);?>元</td>
                                <td><?php echo $one['created_at']?></td>
                            </tr>

                            <?php endforeach;?>
                        <?php endif;?>
                    </tbody>
                </table>
            </div>
        </div>
<!--        <div class="panel panel-lend xgimgnav" id="xgwj">
            <div class="panel-body">
                <ul id="list">
                        <li>
                            <a data-lightbox="example-set" data-title="贷款卡.jpg" href="javascript:if(confirm('http://vmstatic.vmdai.com/images/lendimg/fcd/big/dkk.jpg  \n\nكτݾϞרԃ Teleport Ultra Ђ՘, ӲΪ ̼ˇһٶԲܲ·޶΢ҿѻʨ׃Ϊ̼քǴʼַ֘քַ֘c  \n\nţЫ՚ؾϱǷʏղߪ̼?'))window.location='http://vmstatic.vmdai.com/images/lendimg/fcd/big/dkk.jpg'" tppabs="http://vmstatic.vmdai.com/images/lendimg/fcd/big/dkk.jpg">
                                <img width="256" src="./images/lendimg/fcd/dkk.jpg" tppabs="http://vmstatic.vmdai.com/images/lendimg/fcd/dkk.jpg"></a><p>贷款卡.jpg</p>
                        </li>
                        <li>
                            <a data-lightbox="example-set" data-title="担保方法定代表人连带责任担保承诺函.jpg" href="javascript:if(confirm('http://vmstatic.vmdai.com/images/lendimg/fcd/big/dbffddbrldzrdbcnh.jpg  \n\nكτݾϞרԃ Teleport Ultra Ђ՘, ӲΪ ̼ˇһٶԲܲ·޶΢ҿѻʨ׃Ϊ̼քǴʼַ֘քַ֘c  \n\nţЫ՚ؾϱǷʏղߪ̼?'))window.location='http://vmstatic.vmdai.com/images/lendimg/fcd/big/dbffddbrldzrdbcnh.jpg'" tppabs="http://vmstatic.vmdai.com/images/lendimg/fcd/big/dbffddbrldzrdbcnh.jpg">
                                <img width="256" src="./images/lendimg/fcd/dbffddbrldzrdbcnh.jpg" tppabs="http://vmstatic.vmdai.com/images/lendimg/fcd/dbffddbrldzrdbcnh.jpg"></a><p>担保方法定代表人连带责任担保承诺函.jpg</p>
                        </li>
                        <li>
                            <a data-lightbox="example-set" data-title="担保方股东会决议.jpg" href="javascript:if(confirm('http://vmstatic.vmdai.com/images/lendimg/fcd/big/dbfgdhjy.jpg  \n\nكτݾϞרԃ Teleport Ultra Ђ՘, ӲΪ ̼ˇһٶԲܲ·޶΢ҿѻʨ׃Ϊ̼քǴʼַ֘քַ֘c  \n\nţЫ՚ؾϱǷʏղߪ̼?'))window.location='http://vmstatic.vmdai.com/images/lendimg/fcd/big/dbfgdhjy.jpg'" tppabs="http://vmstatic.vmdai.com/images/lendimg/fcd/big/dbfgdhjy.jpg">
                                <img width="256" rel="lightbox" src="./images/lendimg/fcd/dbfgdhjy.jpg" tppabs="http://vmstatic.vmdai.com/images/lendimg/fcd/dbfgdhjy.jpg"></a><p>担保方股东会决议.jpg</p>
                        </li>
                        <li>
                            <a data-lightbox="example-set" data-title="法人履历& 资格证.jpg" href="javascript:if(confirm('http://vmstatic.vmdai.com/images/lendimg/fcd/big/frllzgz.jpg  \n\nكτݾϞרԃ Teleport Ultra Ђ՘, ӲΪ ̼ˇһٶԲܲ·޶΢ҿѻʨ׃Ϊ̼քǴʼַ֘քַ֘c  \n\nţЫ՚ؾϱǷʏղߪ̼?'))window.location='http://vmstatic.vmdai.com/images/lendimg/fcd/big/frllzgz.jpg'" tppabs="http://vmstatic.vmdai.com/images/lendimg/fcd/big/frllzgz.jpg">
                                <img width="256" rel="lightbox" src="./images/lendimg/fcd/frllzgz.jpg" tppabs="http://vmstatic.vmdai.com/images/lendimg/fcd/frllzgz.jpg"></a><p>法人履历& 资格证.jpg</p>
                        </li>
                        <li>
                            <a data-lightbox="example-set" data-title="企业简介.jpg" href="javascript:if(confirm('http://vmstatic.vmdai.com/images/lendimg/fcd/big/qyjj.jpg  \n\nكτݾϞרԃ Teleport Ultra Ђ՘, ӲΪ ̼ˇһٶԲܲ·޶΢ҿѻʨ׃Ϊ̼քǴʼַ֘քַ֘c  \n\nţЫ՚ؾϱǷʏղߪ̼?'))window.location='http://vmstatic.vmdai.com/images/lendimg/fcd/big/qyjj.jpg'" tppabs="http://vmstatic.vmdai.com/images/lendimg/fcd/big/qyjj.jpg">
                                <img width="256" rel="lightbox" src="./images/lendimg/fcd/qyjj.jpg" tppabs="http://vmstatic.vmdai.com/images/lendimg/fcd/qyjj.jpg"></a><p>企业简介.jpg</p>
                        </li>
                        <li>
                            <a data-lightbox="example-set" data-title="法人身份证.jpg" href="javascript:if(confirm('http://vmstatic.vmdai.com/images/lendimg/fcd/big/frzfzz.jpg  \n\nكτݾϞרԃ Teleport Ultra Ђ՘, ӲΪ ̼ˇһٶԲܲ·޶΢ҿѻʨ׃Ϊ̼քǴʼַ֘քַ֘c  \n\nţЫ՚ؾϱǷʏղߪ̼?'))window.location='http://vmstatic.vmdai.com/images/lendimg/fcd/big/frzfzz.jpg'" tppabs="http://vmstatic.vmdai.com/images/lendimg/fcd/big/frzfzz.jpg">
                                <img width="256" rel="lightbox" src="./images/lendimg/fcd/frzfzz.jpg" tppabs="http://vmstatic.vmdai.com/images/lendimg/fcd/frzfzz.jpg"></a><p>法人身份证.jpg</p>
                        </li>
                        <li>
                            <a data-lightbox="example-set" data-title="法人征信报告.jpg" href="javascript:if(confirm('http://vmstatic.vmdai.com/images/lendimg/fcd/big/frzxbg.jpg  \n\nكτݾϞרԃ Teleport Ultra Ђ՘, ӲΪ ̼ˇһٶԲܲ·޶΢ҿѻʨ׃Ϊ̼քǴʼַ֘քַ֘c  \n\nţЫ՚ؾϱǷʏղߪ̼?'))window.location='http://vmstatic.vmdai.com/images/lendimg/fcd/big/frzxbg.jpg'" tppabs="http://vmstatic.vmdai.com/images/lendimg/fcd/big/frzxbg.jpg">
                                <img width="256" rel="lightbox" src="./images/lendimg/fcd/frzxbg.jpg" tppabs="http://vmstatic.vmdai.com/images/lendimg/fcd/frzxbg.jpg"></a><p>法人征信报告.jpg</p>
                        </li>
                        <li>
                            <a data-lightbox="example-set" data-title="公司营业执照.jpg" href="javascript:if(confirm('http://vmstatic.vmdai.com/images/lendimg/fcd/big/gsyezz.jpg  \n\nكτݾϞרԃ Teleport Ultra Ђ՘, ӲΪ ̼ˇһٶԲܲ·޶΢ҿѻʨ׃Ϊ̼քǴʼַ֘քַ֘c  \n\nţЫ՚ؾϱǷʏղߪ̼?'))window.location='http://vmstatic.vmdai.com/images/lendimg/fcd/big/gsyezz.jpg'" tppabs="http://vmstatic.vmdai.com/images/lendimg/fcd/big/gsyezz.jpg">
                                <img width="256" rel="lightbox" src="./images/lendimg/fcd/gsyezz.jpg" tppabs="http://vmstatic.vmdai.com/images/lendimg/fcd/gsyezz.jpg"></a><p>公司营业执照.jpg</p>
                        </li>
                        <li>
                            <a data-lightbox="example-set" data-title="借款方法定代表人连带责任担保承诺函.jpg" href="javascript:if(confirm('http://vmstatic.vmdai.com/images/lendimg/fcd/big/jkffddbrldzrdbcnh.jpg  \n\nكτݾϞרԃ Teleport Ultra Ђ՘, ӲΪ ̼ˇһٶԲܲ·޶΢ҿѻʨ׃Ϊ̼քǴʼַ֘քַ֘c  \n\nţЫ՚ؾϱǷʏղߪ̼?'))window.location='http://vmstatic.vmdai.com/images/lendimg/fcd/big/jkffddbrldzrdbcnh.jpg'" tppabs="http://vmstatic.vmdai.com/images/lendimg/fcd/big/jkffddbrldzrdbcnh.jpg">
                                <img width="256" rel="lightbox" src="./images/lendimg/fcd/jkffddbrldzrdbcnh.jpg" tppabs="http://vmstatic.vmdai.com/images/lendimg/fcd/jkffddbrldzrdbcnh.jpg"></a><p>借款方法定代表人连带责任担保承诺函.jpg</p>
                        </li>
                        <li>
                            <a data-lightbox="example-set" data-title="借款合同.jpg" href="javascript:if(confirm('http://vmstatic.vmdai.com/images/lendimg/fcd/big/jkht.jpg  \n\nكτݾϞרԃ Teleport Ultra Ђ՘, ӲΪ ̼ˇһٶԲܲ·޶΢ҿѻʨ׃Ϊ̼քǴʼַ֘քַ֘c  \n\nţЫ՚ؾϱǷʏղߪ̼?'))window.location='http://vmstatic.vmdai.com/images/lendimg/fcd/big/jkht.jpg'" tppabs="http://vmstatic.vmdai.com/images/lendimg/fcd/big/jkht.jpg">
                                <img width="256" rel="lightbox" src="./images/lendimg/fcd/jkht.jpg" tppabs="http://vmstatic.vmdai.com/images/lendimg/fcd/jkht.jpg"></a><p>借款合同.jpg</p>
                        </li>
                        <li>
                            <a data-lightbox="example-set" data-title="法人身份证.jpg" href="javascript:if(confirm('http://vmstatic.vmdai.com/images/lendimg/fcd/big/frzfzf.jpg  \n\nكτݾϞרԃ Teleport Ultra Ђ՘, ӲΪ ̼ˇһٶԲܲ·޶΢ҿѻʨ׃Ϊ̼քǴʼַ֘քַ֘c  \n\nţЫ՚ؾϱǷʏղߪ̼?'))window.location='http://vmstatic.vmdai.com/images/lendimg/fcd/big/frzfzf.jpg'" tppabs="http://vmstatic.vmdai.com/images/lendimg/fcd/big/frzfzf.jpg">
                                <img width="256" rel="lightbox" src="./images/lendimg/fcd/frzfzf.jpg" tppabs="http://vmstatic.vmdai.com/images/lendimg/fcd/frzfzf.jpg"></a><p>法人身份证.jpg</p>
                        </li>
                        <li>
                            <a data-lightbox="example-set" data-title="审计报告.jpg" href="javascript:if(confirm('http://vmstatic.vmdai.com/images/lendimg/fcd/big/sjbg.jpg  \n\nكτݾϞרԃ Teleport Ultra Ђ՘, ӲΪ ̼ˇһٶԲܲ·޶΢ҿѻʨ׃Ϊ̼քǴʼַ֘քַ֘c  \n\nţЫ՚ؾϱǷʏղߪ̼?'))window.location='http://vmstatic.vmdai.com/images/lendimg/fcd/big/sjbg.jpg'" tppabs="http://vmstatic.vmdai.com/images/lendimg/fcd/big/sjbg.jpg">
                                <img width="256" rel="lightbox" src="./images/lendimg/fcd/sjbg.jpg" tppabs="http://vmstatic.vmdai.com/images/lendimg/fcd/sjbg.jpg"></a><p>审计报告.jpg</p>
                        </li>
                        <li>
                            <a data-lightbox="example-set" data-title="税务登记证.jpg" href="javascript:if(confirm('http://vmstatic.vmdai.com/images/lendimg/fcd/big/swdjz.jpg  \n\nكτݾϞרԃ Teleport Ultra Ђ՘, ӲΪ ̼ˇһٶԲܲ·޶΢ҿѻʨ׃Ϊ̼քǴʼַ֘քַ֘c  \n\nţЫ՚ؾϱǷʏղߪ̼?'))window.location='http://vmstatic.vmdai.com/images/lendimg/fcd/big/swdjz.jpg'" tppabs="http://vmstatic.vmdai.com/images/lendimg/fcd/big/swdjz.jpg">
                                <img width="256" rel="lightbox" src="./images/lendimg/fcd/swdjz.jpg" tppabs="http://vmstatic.vmdai.com/images/lendimg/fcd/swdjz.jpg"></a><p>税务登记证.jpg</p>
                        </li>
                        <li>
                            <a data-lightbox="example-set" data-title="税务缴费清单.jpg" href="javascript:if(confirm('http://vmstatic.vmdai.com/images/lendimg/fcd/big/swjfqd.jpg  \n\nكτݾϞרԃ Teleport Ultra Ђ՘, ӲΪ ̼ˇһٶԲܲ·޶΢ҿѻʨ׃Ϊ̼քǴʼַ֘քַ֘c  \n\nţЫ՚ؾϱǷʏղߪ̼?'))window.location='http://vmstatic.vmdai.com/images/lendimg/fcd/big/swjfqd.jpg'" tppabs="http://vmstatic.vmdai.com/images/lendimg/fcd/big/swjfqd.jpg">
                                <img width="256" rel="lightbox" src="./images/lendimg/fcd/swjfqd.jpg" tppabs="http://vmstatic.vmdai.com/images/lendimg/fcd/swjfqd.jpg"></a><p>税务缴费清单.jpg</p>
                        </li>
                        <li>
                            <a data-lightbox="example-set" data-title="银行流水.jpg" href="javascript:if(confirm('http://vmstatic.vmdai.com/images/lendimg/fcd/big/yhls.jpg  \n\nكτݾϞרԃ Teleport Ultra Ђ՘, ӲΪ ̼ˇһٶԲܲ·޶΢ҿѻʨ׃Ϊ̼քǴʼַ֘քַ֘c  \n\nţЫ՚ؾϱǷʏղߪ̼?'))window.location='http://vmstatic.vmdai.com/images/lendimg/fcd/big/yhls.jpg'" tppabs="http://vmstatic.vmdai.com/images/lendimg/fcd/big/yhls.jpg">
                                <img width="256" rel="lightbox" src="./images/lendimg/fcd/yhls.jpg" tppabs="http://vmstatic.vmdai.com/images/lendimg/fcd/yhls.jpg"></a><p>银行流水.jpg</p>
                        </li>
                        <li>
                            <a data-lightbox="example-set" data-title="组织机构代码证.jpg" href="javascript:if(confirm('http://vmstatic.vmdai.com/images/lendimg/fcd/big/zzjgdm.jpg  \n\nكτݾϞרԃ Teleport Ultra Ђ՘, ӲΪ ̼ˇһٶԲܲ·޶΢ҿѻʨ׃Ϊ̼քǴʼַ֘քַ֘c  \n\nţЫ՚ؾϱǷʏղߪ̼?'))window.location='http://vmstatic.vmdai.com/images/lendimg/fcd/big/zzjgdm.jpg'" tppabs="http://vmstatic.vmdai.com/images/lendimg/fcd/big/zzjgdm.jpg">
                                <img width="256" rel="lightbox" src="./images/lendimg/fcd/zzjgdm.jpg" tppabs="http://vmstatic.vmdai.com/images/lendimg/fcd/zzjgdm.jpg"></a><p>组织机构代码证.jpg</p>
                        </li>
                        <li>
                            <a data-lightbox="example-set" data-title="最高额授信合同.jpg" href="javascript:if(confirm('http://vmstatic.vmdai.com/images/lendimg/fcd/big/zgsxed.jpg  \n\nكτݾϞרԃ Teleport Ultra Ђ՘, ӲΪ ̼ˇһٶԲܲ·޶΢ҿѻʨ׃Ϊ̼քǴʼַ֘քַ֘c  \n\nţЫ՚ؾϱǷʏղߪ̼?'))window.location='http://vmstatic.vmdai.com/images/lendimg/fcd/big/zgsxed.jpg'" tppabs="http://vmstatic.vmdai.com/images/lendimg/fcd/big/zgsxed.jpg">
                                <img width="256" rel="lightbox" src="./images/lendimg/fcd/zgsxed.jpg" tppabs="http://vmstatic.vmdai.com/images/lendimg/fcd/zgsxed.jpg"></a><p>最高额授信合同.jpg</p>
                        </li>

                </ul>
            </div>

        </div>-->
    </div>
</div>
<script type="text/javascript">
    $("#10001").addClass("on");
    $(".main").addClass("projectlist");
    $(function($) {
        setTimeout("setchart()", 1000);
    });
    function setchart() {
        var ctx;
        var data;
        $("canvas[name='Chart']").each(function() {
            $(this).prev().hide();
            $(this).attr('class', '');
            ctx = $(this).get(0).getContext("2d");
            data = [{ value: Number($(this).attr('progress')), color: "#3399ff" }, { value: Number(100 - $(this).attr('progress')), color: "#F2F2F2" }];
            new Chart(ctx).Doughnut(data, { size: 102 });

        });
    }
    if ($(".date").length > 0) {
        $(".date").each(function () {
            if ($(this).text() != "已经结束"){
            var today = new Date($(this).text()), tomorrow = Math.round(today / 1000);
            $(this).scojs_countdown({ until: tomorrow });
            }
        });
    }
</script>

<script type="text/javascript">

    
    
    $("#10001").addClass("on");
    $(".main").addClass("projectlist");
    
    function setchart() {
        var ctx;
        var data;
        $("canvas[name='Chart']").each(function() {
            $(this).prev().hide();
            $(this).attr('class', '');
            ctx = $(this).get(0).getContext("2d");
            data = [{ value: Number($(this).attr('progress')), color: "#3399ff" }, { value: Number(100 - $(this).attr('progress')), color: "#F2F2F2" }];
            new Chart(ctx).Doughnut(data, { size: 102 });

        });
    }
    
    (function ($) {
        


        setTimeout("setchart()", 1000);

        var loadedImages = 0,
            handler = $('#list li');

        var options = {
            autoResize: true,
            container: $('#list'),
            offset: 25,
            outerOffset: 10,
            itemWidth: 256
        };
        var jkxqimg = $(".jkxq-c").find('img');
        if (jkxqimg.length > 0) {
            jkxqimg.each(function () {
                var html = "<a data-lightbox=\"example-set\" data-title=\"票据资料\" href=" + $(this).attr('src') + "><img src='" + $(this).attr('src') + "' /></a>";
                $(this).remove();
                $(".jkxq-c").append(html);
            });
            
        }
        $('#list').imagesLoaded(function () {
            handler.wookmark(options);
            $("#xgwj").hide();
            /* handler.click(function () {
                 var newHeight = $('img', this).height() + Math.round(Math.random() * 300 + 30);
                 $(this).css('height', newHeight + 'px');
                 handler.wookmark();
             });*/
        }).progress(function (instance, image) {
            loadedImages++;
            if (loadedImages == handler.length)
                $('.progress-bar').hide();
            else
                $('.progress-bar').width((loadedImages / handler.length * 100) + '%');
        });

    })(jQuery);
    var projectdetailnew = new projectdetailnew();

    if ($(".lendalt").length > 0) {
        var options = {
            html: true,
            selector: true,
            content: '<div style="width:200px;">我同意以本投标界面、<a href="#">微美贷平台借款合同</a>范本及微美贷平台公示的关于借款、还款、成交服务费等相关规则作为借款条件向发布本借款标的借款人发出不可撤销之承诺。</div>'
        };
        $('.lendalt').popover(options);
    }
    $('body').bind('contextmenu', function () {
        return false;
    });
    document.onkeydown = function () {
        if (event.ctrlKey && window.event.keyCode == 67) {
            return false;
        }
    };
    document.body.oncopy = function () {
        return false;
    };
    document.onselectstart = function () {
        return false;
    };



</script>